<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MoneyLee’s Blog - 个人博客</title><meta name="author" content="李财"><meta name="copyright" content="李财"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="嗨，我是李财 (MoneyLee)， 一名来自中国的 iOS开发者。">
<meta property="og:type" content="website">
<meta property="og:title" content="MoneyLee’s Blog">
<meta property="og:url" content="https://moneylee.gitee.io/blog/page/3/index.html">
<meta property="og:site_name" content="MoneyLee’s Blog">
<meta property="og:description" content="嗨，我是李财 (MoneyLee)， 一名来自中国的 iOS开发者。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2019/11/10/SYvXMgCFuTNOVeZ.png">
<meta property="article:author" content="李财">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2019/11/10/SYvXMgCFuTNOVeZ.png"><link rel="shortcut icon" href="/blog/img/favicon.png"><link rel="canonical" href="https://moneylee.gitee.io/blog/page/3/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/blog/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/blog/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'MoneyLee’s Blog',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2021-09-19 23:55:28'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if (GLOBAL_CONFIG_SITE.isHome && /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/blog/atom.xml" title="MoneyLee’s Blog" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://i.loli.net/2019/11/10/SYvXMgCFuTNOVeZ.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/blog/archives/"><div class="headline">文章</div><div class="length-num">47</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/blog/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/blog/"><i class="fa-fw fa fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/blog/archives/"><i class="fa-fw fa fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/blog/tags/"><i class="fa-fw fa fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/blog/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/blog/bbs/"><i class="fa-fw fa fa-coffee"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/blog/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/blog/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fa fa-list"></i><span> 影音</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/blog/music"><i class="fa-fw /music/"></i><span> 0</span></a></li><li><a class="site-page child" href="/blog/movies"><i class="fa-fw /movies/"></i><span> 1</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('https://i.loli.net/2019/05/22/5ce53eb6dc82757840.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/blog/">MoneyLee’s Blog</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/blog/"><i class="fa-fw fa fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/blog/archives/"><i class="fa-fw fa fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/blog/tags/"><i class="fa-fw fa fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/blog/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/blog/bbs/"><i class="fa-fw fa fa-coffee"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/blog/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/blog/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fa fa-list"></i><span> 影音</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/blog/music"><i class="fa-fw /music/"></i><span> 0</span></a></li><li><a class="site-page child" href="/blog/movies"><i class="fa-fw /movies/"></i><span> 1</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">MoneyLee’s Blog</h1><div id="site_social_icons"><a class="social-icon" href="https://github.com/licai28" target="_blank" title=""><i class="fa fa-github"></i></a><a class="social-icon" href="mailto:licai_1024@hotmail.com" target="_blank" title=""><i class="fa fa-envelope"></i></a><a class="social-icon" href="/blog/img/mywechat.jpg" target="_blank" title=""><i class="fa fa-weixin"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left_radius"><a href="/blog/2020/05/18/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_07Day(Tensorflow%E5%AE%9E%E8%B7%B5)/" title="人工智能学习整理_07Day(Tensorflow实践)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_07Day(Tensorflow实践)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/18/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_07Day(Tensorflow%E5%AE%9E%E8%B7%B5)/" title="人工智能学习整理_07Day(Tensorflow实践)">人工智能学习整理_07Day(Tensorflow实践)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-18T12:10:33.000Z" title="发表于 2020-05-18 20:10:33">2020-05-18</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">北京大学 人工智能实践：Tensorflow笔记学习地址
课程概述课程梳理出Tensorflow2搭建优化神经网络的八股，带你逐步完善代码，实现图像识别与股票预测。课程以录像形式讲解知识点，以录屏形式分析源代码，通过助教的Tensorflow笔记实现回顾与扩展。内容包括：深度学习、神经网络的基本概念原理和代码实现示例。
课程大纲第一讲、讲解神经网络的计算过程，搭建出你的第一个神经网络模型；
第二讲、讲解神经网络的优化方法，掌握学习率、激活函数、损失函数和正则化的使用，用Python语言写出5种反向传播优化器（SGD、Momentum、Adagrad、RMSProp、Adam）。
第三讲、分享神经网络的搭建八股，用“六步法”， 不到20行代码，写出手写数字识别训练模型。
第四讲、对神经网络的八股进行扩展，增加自制数据集、数据增强，断点续训，参数提取和acc/loss可视化，最后实现给图识物的应用程序。
第五讲、讲解卷积神经网络，用基础CNN、LeNet、AlexNet、VGGNet、InceptionNet和ResNet实现图像识别。
第六讲、讲解循环神经网络，用基础RNN、LSTM、G ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/blog/2020/05/16/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_06Day(Tensorflow%E5%AE%89%E8%A3%85)/" title="人工智能学习整理_06Day(Tensorflow安装)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_06Day(Tensorflow安装)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/16/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_06Day(Tensorflow%E5%AE%89%E8%A3%85)/" title="人工智能学习整理_06Day(Tensorflow安装)">人工智能学习整理_06Day(Tensorflow安装)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-16T13:12:30.000Z" title="发表于 2020-05-16 21:12:30">2020-05-16</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">#Tensorflow安装说明
前置条件：win7或win10 64位操作系统   推荐win10 64位操作系统
Python：3.6以上版本 推荐用 anaconda3 
百度网盘下载地址：https://pan.baidu.com/s/1k-1m2jshv2J_j3zFWQJSyg 
提取码：tm7c
安装注意勾选环境变量

CPU和GPU二选一1、CPU版本：
​      适合集成显卡，amd显卡全部，或者低于英伟达gt750M的电脑
​      在CMD里面输入：
​      pip install tensorflow==1.13.0 -i https://pypi.douban.com/simple 
​      
2、安装GPU的tensorflow （电脑必须有英伟达的显卡，并且性能要求高于gt750M以上 如果您的电脑才购买一年,就基本上可以）
下载 cuda10.0 和 cudnn7.6
下载地址:
https://pan.baidu.com/s/1PHbc0t15u4d9zknY08jzhw 
提取码: t0pr
安装的时候选择自定义。安装选项参考下图: ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/blog/2020/05/15/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_05Day(%E5%8F%8D%E5%90%91%E4%BC%A0%E6%92%AD%E7%AE%97%E6%B3%95)/" title="人工智能学习整理_05Day(反向传播算法)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_05Day(反向传播算法)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/15/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_05Day(%E5%8F%8D%E5%90%91%E4%BC%A0%E6%92%AD%E7%AE%97%E6%B3%95)/" title="人工智能学习整理_05Day(反向传播算法)">人工智能学习整理_05Day(反向传播算法)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-15T12:17:33.000Z" title="发表于 2020-05-15 20:17:33">2020-05-15</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">零基础入门深度学习- 神经网络和反向传播算法学习地址
</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/blog/2020/05/13/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_04Day(%E6%A2%AF%E5%BA%A6%E4%B8%8E%E6%A2%AF%E5%BA%A6%E4%B8%8B%E9%99%8D)/" title="人工智能学习整理_04Day(梯度与梯度下降)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_04Day(梯度与梯度下降)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/13/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_04Day(%E6%A2%AF%E5%BA%A6%E4%B8%8E%E6%A2%AF%E5%BA%A6%E4%B8%8B%E9%99%8D)/" title="人工智能学习整理_04Day(梯度与梯度下降)">人工智能学习整理_04Day(梯度与梯度下降)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-13T14:11:02.000Z" title="发表于 2020-05-13 22:11:02">2020-05-13</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">[机器学习] ML重要概念：梯度（Gradient）与梯度下降法（Gradient Descent）####引言　机器学习栏目记录我在学习Machine Learning过程的一些心得笔记，涵盖线性回归、逻辑回归、Softmax回归、神经网络和SVM等等，主要学习资料来自网上的免费课程和一些经典书籍，免费课程例如Standford Andrew Ng老师在Coursera的教程以及UFLDL Tutorial，经典书籍例如《统计学习方法》等，同时也参考了大量网上的相关资料（在后面列出）。
　　
####前言　机器学习中的大部分问题都是优化问题，而绝大部分优化问题都可以使用梯度下降法处理，那么搞懂什么是梯度，什么是梯度下降法就非常重要！这是基础中的基础，也是必须掌握的概念！　提到梯度，就必须从导数（derivative）、偏导数（partial derivative）和方向导数（directional derivative）讲起，弄清楚这些概念，才能够正确理解为什么在优化问题中使用梯度下降法来优化目标函数，并熟练掌握梯度下降法（Gradient Descent）。
　本文主要记录我在学习 ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/blog/2020/05/13/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_03Day(%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%B5%85%E8%B0%88)/" title="人工智能学习整理_03Day(深度学习浅谈)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_03Day(深度学习浅谈)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/13/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_03Day(%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%B5%85%E8%B0%88)/" title="人工智能学习整理_03Day(深度学习浅谈)">人工智能学习整理_03Day(深度学习浅谈)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-13T13:00:02.000Z" title="发表于 2020-05-13 21:00:02">2020-05-13</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">神经网络浅讲：从神经元到深度学习神经网络是一门重要的机器学习技术。它是目前最为火热的研究方向–深度学习的基础。学习神经网络不仅可以让你掌握一门强大的机器学习方法，同时也可以更好地帮助你理解深度学习技术。
　　本文以一种简单的，循序的方式讲解神经网络。适合对神经网络了解不多的同学。本文对阅读没有一定的前提要求，但是懂一些机器学习基础会更好地帮助理解本文。
　　神经网络是一种模拟人脑的神经网络以期能够实现类人工智能的机器学习技术。人脑中的神经网络是一个非常复杂的组织。成人的大脑中估计有1000亿个神经元之多。

图1 人脑神经网络
　　那么机器学习中的神经网络是如何实现这种模拟的，并且达到一个惊人的良好效果的？通过本文，你可以了解到这些问题的答案，同时还能知道神经网络的历史，以及如何较好地学习它。
　　由于本文较长，为方便读者，以下是本文的目录：
　　一.前言
　　二.神经元
　　三.单层神经网络（感知器）
　　四.两层神经网络（多层感知器）
　　五.多层神经网络（深度学习）
　　六.回顾
　　七.展望

　　八.总结

　　九.后记
　　十.备注

一. 前言
　　让我们来看一个经典的神 ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/blog/2020/05/10/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_02Day(3%E5%A4%A7%E5%9F%BA%E7%A1%80%E5%BA%93)/" title="人工智能学习整理_02Day(3大基础库)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_02Day(3大基础库)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/10/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_02Day(3%E5%A4%A7%E5%9F%BA%E7%A1%80%E5%BA%93)/" title="人工智能学习整理_02Day(3大基础库)">人工智能学习整理_02Day(3大基础库)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-10T12:00:02.000Z" title="发表于 2020-05-10 20:00:02">2020-05-10</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">学习机器学习常用的三个基础包 numpy，pandas，matplotlibnumpy用来做矩阵计算
pandas用来做数据预处理
matplotlib用来绘图
学习资源上传至baiduwangpan：
地址:https://pan.baidu.com/s/1LI4OwWNT9crAXn8Q4tI1Aw  pwd:v5ds

</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/blog/2020/05/09/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_01Day(%E7%8E%AF%E5%A2%83%E5%8F%8A%E5%B7%A5%E5%85%B7)/" title="人工智能学习整理_01Day(环境及工具)">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/007S8ZIlly1gfszcmp5uuj30dw09gmxl.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="人工智能学习整理_01Day(环境及工具)"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/09/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD%E5%AD%A6%E4%B9%A0%E6%95%B4%E7%90%86_01Day(%E7%8E%AF%E5%A2%83%E5%8F%8A%E5%B7%A5%E5%85%B7)/" title="人工智能学习整理_01Day(环境及工具)">人工智能学习整理_01Day(环境及工具)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-09T12:10:02.000Z" title="发表于 2020-05-09 20:10:02">2020-05-09</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/">人工智能</a></span></div><div class="content">安装学习需要使用到的工具 anacondaAnaconda（官方网站）可以便捷获取包且对包能够进行管理，同时对环境可以统一管理的发行版本。Anaconda包含了conda、Python在内的超过180个科学包及其依赖项。
学习jupyter的使用Jupyter是一种交互式的编程工具，生成的文件是ipynb后缀的文件。它最大的优势是可以将编程的运行过程记录下来。所以被广泛应用在教学演示中。
Jupyter在使用中的一些技巧：1、启动Jupyter
​      我们可以新建一个文件夹、叫做abc，然后把编程的jupyter代码文件放到这个abc文件内，我们可以从abc文件夹启动Jupyter。方法是：打开abc文件，然后按住shift不放，然后空白处鼠标右击，选择“在此处打开XXX”，然后会弹出一个cmd窗口，输入：ipython notebook 回车即可打开jupyter。如下图所示：


2、jupyter的常规操作：
2.1 新建一个ipynb文件

2.2 ipynb文件的重命名

2.3 代码编写和运行

关于运行，点击2即可，也可以用快捷键 shift+回车 或者 ctrl ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/blog/2020/05/07/SpringBoot%20%E8%B7%A8%E5%9F%9F%E9%85%8D%E7%BD%AE/" title="SpringBoot 跨域配置">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="SpringBoot 跨域配置"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/05/07/SpringBoot%20%E8%B7%A8%E5%9F%9F%E9%85%8D%E7%BD%AE/" title="SpringBoot 跨域配置">SpringBoot 跨域配置</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-05-07T11:29:08.000Z" title="发表于 2020-05-07 19:29:08">2020-05-07</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/Java/">Java</a></span></div><div class="content">SpringBoot 跨域配置简介**:** 什么是浏览器跨域和springboot怎么解决
跨域：浏览器同源策略 1995年，同源政策由 Netscape 公司引⼊浏览器。⽬前，所有浏览器都实
⾏这个政策。 最初，它的含义是指，A⽹⻚设置的 Cookie，B⽹⻚不能打开，除⾮这两个⽹⻚”同 
源”。所谓”同源”指的是”三个相同”


12345678协议相同 http https域名相同 www.xdclass.net端⼝相同 80 81⼀句话：浏览器从⼀个域名的⽹⻚去请求另⼀个域名的资源时，域名、端⼝、协议任⼀不同，都是跨域浏览器控制台跨域提示：No &#x27;Access-Control-Allow-Origin&#x27; header is present on the requestedresource. Origin &#x27;null&#x27; is therefore not allowed access.


解决⽅法

1234567891011121）JSONP 2）Http响应头配置允许跨域 nginx层配置 https://www.cnblogs.co ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/blog/2020/02/26/%E4%BA%92%E8%81%94%E2%BD%B9%E9%A1%B9%E2%BD%AC%E4%B8%AD%20%E5%8D%95%E6%9C%BA%E5%92%8C%E5%88%86%E5%B8%83%E5%BC%8F%E5%BA%94%E2%BD%A4%E7%9A%84%E7%99%BB%E5%BD%95%E6%A0%A1%E9%AA%8C%E8%A7%A3%E5%86%B3%E2%BD%85%E6%A1%88/" title="互联⽹项⽬中 单机和分布式应⽤的登录校验解决⽅案JWT">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="互联⽹项⽬中 单机和分布式应⽤的登录校验解决⽅案JWT"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/02/26/%E4%BA%92%E8%81%94%E2%BD%B9%E9%A1%B9%E2%BD%AC%E4%B8%AD%20%E5%8D%95%E6%9C%BA%E5%92%8C%E5%88%86%E5%B8%83%E5%BC%8F%E5%BA%94%E2%BD%A4%E7%9A%84%E7%99%BB%E5%BD%95%E6%A0%A1%E9%AA%8C%E8%A7%A3%E5%86%B3%E2%BD%85%E6%A1%88/" title="互联⽹项⽬中 单机和分布式应⽤的登录校验解决⽅案JWT">互联⽹项⽬中 单机和分布式应⽤的登录校验解决⽅案JWT</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-02-26T11:12:02.000Z" title="发表于 2020-02-26 19:12:02">2020-02-26</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/Java/">Java</a></span></div><div class="content">互联⽹项⽬中 单机和分布式应⽤的登录校验解决⽅JWT简介：讲解单机和分布式应⽤下登录校验，session共享，分布式缓存使⽤
单机tomcat应⽤登录检验

sesssion保存在浏览器和应⽤服务器会话之间
⽤户登录成功，服务端会保存⼀个session，当然客户端有⼀个sessionId
客户端会把sessionId保存在cookie中，每次请求都会携带这个sessionId


分布式应⽤中session共享

真实的应⽤不可能单节点部署，所以就有个多节点登录session共享的问题需要解决

tomcat⽀持session共享，但是有⼴播⻛暴；⽤户量⼤的时候，占⽤资源就严重，不推荐

使⽤redis存储token:

服务端使⽤UUID⽣成随机64位或者128位token，放⼊redis中，然后返回给客户端并存
储在cookie中

⽤户每次访问都携带此token，服务端去redis中校验是否有此⽤户即






分布式应⽤下登录检验解决⽅案 JWT讲解简介：分布式应⽤的登录检验解决⽅案 JWT讲解 json wen token
什么是JWT

JWT 是⼀个开放标准，它定义了⼀ ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/blog/2020/02/03/iOS13%E9%80%82%E9%85%8D%E6%B7%B1%E8%89%B2%E6%A8%A1%E5%BC%8F/" title="iOS13适配深色模式">     <img class="post_bg" src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="iOS13适配深色模式"></a></div><div class="recent-post-info"><a class="article-title" href="/blog/2020/02/03/iOS13%E9%80%82%E9%85%8D%E6%B7%B1%E8%89%B2%E6%A8%A1%E5%BC%8F/" title="iOS13适配深色模式">iOS13适配深色模式</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-02-03T05:04:07.000Z" title="发表于 2020-02-03 13:04:07">2020-02-03</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/blog/categories/iOS/">iOS</a></span></div><div class="content">前段时间收到客户的反应 说试用中的App 有的界面UI有问题,  之前都是真机调试过的, 心里也很诧异, 然后用自己的手机试了下, 果然有的文本输入框的文字不显示, 有的列表背景颜色是黑色, 我就有点迷糊, 怎么会突然出现这种问题, 我首先想到的是修改代码, 给个颜色看看显示不, 然后相继的将有问题的位置都添加了Color, 一切正常, 但是这样显然没有解决隐患啊,  然后我又想到了是不是iOS13系统的原因, 因为我手机也是最近才升级了, 并且我使用了深色模式, 问题应该出现在这里, 果然我在手机设置里设置为浅色模式, 之前出现的问题就没了, 唉… 怎么可以这样,最后的解决办法 在 info.plist文件内添加User Interface Style 并且设置值为 Light
就会轻松解决上面的问题, 也不用担心我哪里漏掉这种显示Bug

</div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/blog/page/2/#content-inner"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/blog/">1</a><a class="page-number" href="/blog/page/2/#content-inner">2</a><span class="page-number current">3</span><a class="page-number" href="/blog/page/4/#content-inner">4</a><a class="page-number" href="/blog/page/5/#content-inner">5</a><a class="extend next" rel="next" href="/blog/page/4/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://i.loli.net/2019/11/10/SYvXMgCFuTNOVeZ.png" onerror="this.onerror=null;this.src='/blog/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">李财</div><div class="author-info__description">嗨，我是李财 (MoneyLee)， 一名来自中国的 iOS开发者。</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/blog/archives/"><div class="headline">文章</div><div class="length-num">47</div></a></div><div class="card-info-data-item is-center"><a href="/blog/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/licai28" target="_blank" title=""><i class="fa fa-github"></i></a><a class="social-icon" href="mailto:licai_1024@hotmail.com" target="_blank" title=""><i class="fa fa-envelope"></i></a><a class="social-icon" href="/blog/img/mywechat.jpg" target="_blank" title=""><i class="fa fa-weixin"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/blog/2021/09/14/Flutter%20%E5%90%AF%E5%8A%A8%E9%A1%B5%E9%85%8D%E7%BD%AE/" title="无题"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="无题"/></a><div class="content"><a class="title" href="/blog/2021/09/14/Flutter%20%E5%90%AF%E5%8A%A8%E9%A1%B5%E9%85%8D%E7%BD%AE/" title="无题">无题</a><time datetime="2021-09-14T03:05:25.000Z" title="发表于 2021-09-14 11:05:25">2021-09-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2020/08/21/iOS%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" title="iOS机器学习"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="iOS机器学习"/></a><div class="content"><a class="title" href="/blog/2020/08/21/iOS%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" title="iOS机器学习">iOS机器学习</a><time datetime="2020-08-21T02:04:10.000Z" title="发表于 2020-08-21 10:04:10">2020-08-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2020/08/20/Docker%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%95%B4%E7%90%86/" title="Docker 基础知识整理"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl4zhjzuj30qy0e0gyz.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="Docker 基础知识整理"/></a><div class="content"><a class="title" href="/blog/2020/08/20/Docker%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%95%B4%E7%90%86/" title="Docker 基础知识整理">Docker 基础知识整理</a><time datetime="2020-08-20T12:12:02.000Z" title="发表于 2020-08-20 20:12:02">2020-08-20</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2020/08/19/Flutter/" title="Flutter"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="Flutter"/></a><div class="content"><a class="title" href="/blog/2020/08/19/Flutter/" title="Flutter">Flutter</a><time datetime="2020-08-19T02:04:03.000Z" title="发表于 2020-08-19 10:04:03">2020-08-19</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2020/08/19/iOS%20AR%E5%92%8CARKit4/" title="iOS AR和ARKit4"><img src="https://tva1.sinaimg.cn/large/006y8mN6ly1g8vl0019wlj31ej0u0x6q.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="iOS AR和ARKit4"/></a><div class="content"><a class="title" href="/blog/2020/08/19/iOS%20AR%E5%92%8CARKit4/" title="iOS AR和ARKit4">iOS AR和ARKit4</a><time datetime="2020-08-19T02:04:03.000Z" title="发表于 2020-08-19 10:04:03">2020-08-19</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            <a class="card-more-btn" href="/blog/categories/" title="查看更多">
    <i class="fas fa-angle-right"></i></a>
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/Docker/"><span class="card-category-list-name">Docker</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/Java/"><span class="card-category-list-name">Java</span><span class="card-category-list-count">10</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/Linux/"><span class="card-category-list-name">Linux</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/iOS/"><span class="card-category-list-name">iOS</span><span class="card-category-list-count">10</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/"><span class="card-category-list-name">人工智能</span><span class="card-category-list-count">7</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/"><span class="card-category-list-name">微信小程序</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/%E6%95%B0%E6%8D%AE%E5%BA%93/"><span class="card-category-list-name">数据库</span><span class="card-category-list-count">3</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/%E8%BF%90%E7%BB%B4/"><span class="card-category-list-name">运维</span><span class="card-category-list-count">7</span></a></li>
            </ul></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span><a class="card-more-btn" href="/blog/archives/" title="查看更多">
    <i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2021/09/"><span class="card-archive-list-date">九月 2021</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2020/08/"><span class="card-archive-list-date">八月 2020</span><span class="card-archive-list-count">8</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2020/07/"><span class="card-archive-list-date">七月 2020</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2020/06/"><span class="card-archive-list-date">六月 2020</span><span class="card-archive-list-count">8</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2020/05/"><span class="card-archive-list-date">五月 2020</span><span class="card-archive-list-count">8</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2020/02/"><span class="card-archive-list-date">二月 2020</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2019/12/"><span class="card-archive-list-date">十二月 2019</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2019/11/"><span class="card-archive-list-date">十一月 2019</span><span class="card-archive-list-count">3</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">47</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2021-09-19T15:55:27.984Z"></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2021 By 李财</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/blog/js/utils.js"></script><script src="/blog/js/main.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>